package com.fesine.enums;

/**
 * @description: 异常封装枚举类
 * @author: Fesine
 * @createTime:2017/8/30 22:01
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2017/8/30 22:01
 */
public enum ResultEnum {
    UNKOWN_ERROR(-1,"未知异常"),
    PRIMARY_SCHOOL(999,"还在上小学！"),
    NOT_ADULT(998,"还未成年！")
    ;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
